<?php
namespace backend\models;
use yii\base\Model;

class ReportForm extends Model {
	
	/**
	 * 属性 
	 * @var unknown
	 */
	public $start_time;
	public $end_time;
	public $list;
	
	/**
	 * 规则(non-PHPdoc)
	 * @see \yii\base\Model::rules()
	 */
	public function rules(){
		return[
		['list','in','range'=>[2,1,0],'message'=>'请正确选择时间','on'=>'register']
		
		];
		
	}
	
	
	/**
	 * 场景(non-PHPdoc)
	 * @see \yii\base\Model::scenarios()
	 */
	public function scenarios(){
		return [
			'inquire'=>['start_time', 'end_time','list']		
		];
	}
	
	
	/**
	 * 属性标签(non-PHPdoc)
	 * @see \yii\base\Model::attributeLabels()
	 */
	public function attributeLabels(){
		return [
		'start_time'=>'开始时间',
		'end_time'=>'结束时间',
		'list'=>'时段查询',
		];
	}
}
?>